﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QuanLyCayXanh.Models
{
    [Table("Street")]
    public class Street
    {        
        public Street()
        {
            //this.Addresses = new HashSet<Address>();
        }

        public int Id { get; set; }
        [Required(ErrorMessage="{0} không được bỏ trống !")]
        [Display(Name="Tên Đường")]
        public string Name { get; set; }

        //public virtual ICollection<Address> Addresses { get; set; }
    }
}